package com.oa.pojo;

import java.io.Serializable;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 
* @TableName role_menu
*/
@ApiModel(value = "角色菜单中间表实体类")
@Data
public class RoleMenu implements Serializable {

    /**
    * 主键ID
    */
    @ApiModelProperty("主键ID")
    private Integer id;
    /**
    * 角色表id
    */
    @ApiModelProperty("角色表id")
    private Integer roleId;
    /**
    * 权限表id
    */
    @ApiModelProperty("权限表id")
    private Integer menuId;
    /**
    * 描述
    */

    @ApiModelProperty("描述")
    private String remark;
    /**
    * 创建时间
    */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createDate;
    /**
    * 修改时间
    */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("修改时间")
    private Date updateDate;

    public RoleMenu() {
    }

    public RoleMenu(Integer id, Integer roleId, Integer menuId, String remark, Date createDate, Date updateDate) {
        this.id = id;
        this.roleId = roleId;
        this.menuId = menuId;
        this.remark = remark;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }
}
